package service.impl;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import dao.OrderDao;
import dao.impl.OrderDaoImpl;
import po.Cart;
import po.Orders;
import service.OrderService;

public class OrderServiceImpl implements OrderService {
	
	private OrderDao orderDao = new OrderDaoImpl();
	@Override
	public Integer getOid() {
		return orderDao.getOid();
	}

	@Override
	public Integer addOrder(Cart cart, Integer oid) {
		return orderDao.addOrder(cart, oid);
	}
	
	public List<Orders> getAllOrder(String aid,HttpServletRequest request){
		return orderDao.getAllOrder(aid, request);
	}
}
